<template>
  <MSelect v-bind="{ ...config, ...$attrs }"></MSelect>
</template>

<script lang="ts" setup>
  import { ref } from 'vue';
  import { apiGetSpaceDriverList } from '@/api/driver';
  import MSelect from '../MSelect/index.vue';

  const config = ref({
    placeholder: '请选择',
    api: (params: any) => {
      return apiGetSpaceDriverList({ ...params }).then((res) => {
        return res;
      });
    },
    valueField: 'driver_id',
    labelField: 'driver_name',
  });
</script>
